package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * Spring Boot APM Demo Application
 * 
 * This application demonstrates integration with:
 * - SkyWalking for APM (Application Performance Monitoring)
 * - SonarQube for code quality analysis
 * - SQLite as lightweight database
 * 
 * @author APM Demo Team
 * @version 1.0.0
 */
@SpringBootApplication
@EnableAsync
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
        System.out.println("\n=================================================");
        System.out.println("  应用启动成功！");
        System.out.println("  应用地址: http://localhost:8080");
        System.out.println("  Swagger文档: http://localhost:8080/swagger-ui.html");
        System.out.println("  API文档: http://localhost:8080/v3/api-docs");
        System.out.println("  健康检查: http://localhost:8080/api/health");
        System.out.println("  用户接口: http://localhost:8080/api/users");
        System.out.println("  订单接口: http://localhost:8080/api/orders");
        System.out.println("=================================================\n");
    }
}

